---
export interface Props {
	title: string;
}

const { title } = Astro.props;
---

<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no">
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<meta name="generator" content={Astro.generator} />
		<title>{title}</title>
		<script>
		!(function (t) {
          function e() {
            var e = this || self;
            (e.globalThis = e), delete t.prototype._T_;
          }
          "object" != typeof globalThis &&
            (this
              ? e()
              : (t.defineProperty(t.prototype, "_T_", {
                  configurable: !0,
                  get: e,
                }),
                _T_));
        })(Object);
		</script>
	</head>
	<body>
		<slot />
	</body>
</html>
<style is:global>
	html {
		margin:0;
		padding:0;
		font-family: system-ui, sans-serif;
		background-color: #fff;
		color: #333;
		overflow-x: hidden;
	}
	body{
		overflow-x: hidden;
	}
	main {
		max-width: 70ch;
		margin: 0 auto 6rem;
	}
</style>
